﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PCS_Linh.lab01
{
    class HinhTron
    {
        const double pi = 3.14;
        public void run()
        {
            Console.Write("Please enter ridius of the circle: ");
            double radius = Convert.ToDouble(Console.ReadLine());
            if (radius > 0)
            {
                double perameter = 2 * pi * radius;
                double area = pi * radius * radius;
                Console.WriteLine("The perimeter is: {0,10:0.0000}", perameter);
                Console.WriteLine("The area is: {0,10:0.0000}", area);
            }
            else
            {
                Console.WriteLine("The radius must be a positive number");
            }

        }
    }
}
